ARDK for Android/com.nianticlabs.ardk/CameraIntrinsics/getFocalLength
getFocalLength
[androidJvm]
open fun getFocalLength(): FloatArray
Returns the camera's focal length in pixels.
The focal length is conventionally represented in pixels. For a detailed explanation, please see Disecting the Camera Matrix, Part 3: The Intrinsic Matrix. Pixels-to-meters conversion can use SENSOR_INFO_PHYSICAL_SIZE and SENSOR_INFO_PIXEL_ARRAY_SIZE in the Android Characteristics API.
Return
a float[2] containing the focal length. The order of values is {fx, fy}.
[androidJvm]
open fun getFocalLength(focalLength: FloatArray?, offset: Int)
Returns the camera's focal length in pixels.
The focal length is conventionally represented in pixels. For a detailed explanation, please see Disecting the Camera Matrix, Part 3: The Intrinsic Matrix. Pixels-to-meters conversion can use SENSOR_INFO_PHYSICAL_SIZE and SENSOR_INFO_PIXEL_ARRAY_SIZE in the Android Characteristics API.
Parameters
androidJvm
| focalLength | storage for at least 2 floats representing the focal length. The order of values is {fx, fy}. |
| offset | the offset in focalLength at which to begin writing the focal length values. |